//
//  ViewController.m
//  12-StoryBoardAndSizeClasses
//
//  Created by 曹曹 on 16/7/29.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "ViewController.h"
#import "CustomTableViewCell.h"

#define kTableViewIdentifier @"reuseCell"

@interface ViewController () <UITableViewDelegate, UITableViewDataSource>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 20;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    CustomTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kTableViewIdentifier];
    cell.titleLabel.text = @"我叫你你敢答应吗";
    cell.detailLabel.text = @"sfsdkfjseklfndskgnadskgksadnk";
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
